/*
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.aliyuncs.objectdet.model.v20191230;

import com.aliyuncs.RpcAcsRequest;
import com.aliyuncs.http.MethodType;
import com.aliyuncs.objectdet.Endpoint;

/**
 * @author auto create
 * @version 
 */
public class DetectVideoIPCObjectRequest extends RpcAcsRequest<DetectVideoIPCObjectResponse> {
	   

	private Long startTimestamp;

	private Boolean callbackOnlyHasObject;

	private String videoURL;
	public DetectVideoIPCObjectRequest() {
		super("objectdet", "2019-12-30", "DetectVideoIPCObject");
		setMethod(MethodType.POST);
		try {
			com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
			com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
		} catch (Exception e) {}
	}

	public Long getStartTimestamp() {
		return this.startTimestamp;
	}

	public void setStartTimestamp(Long startTimestamp) {
		this.startTimestamp = startTimestamp;
		if(startTimestamp != null){
			putBodyParameter("StartTimestamp", startTimestamp.toString());
		}
	}

	public Boolean getCallbackOnlyHasObject() {
		return this.callbackOnlyHasObject;
	}

	public void setCallbackOnlyHasObject(Boolean callbackOnlyHasObject) {
		this.callbackOnlyHasObject = callbackOnlyHasObject;
		if(callbackOnlyHasObject != null){
			putBodyParameter("CallbackOnlyHasObject", callbackOnlyHasObject.toString());
		}
	}

	public String getVideoURL() {
		return this.videoURL;
	}

	public void setVideoURL(String videoURL) {
		this.videoURL = videoURL;
		if(videoURL != null){
			putBodyParameter("VideoURL", videoURL);
		}
	}

	@Override
	public Class<DetectVideoIPCObjectResponse> getResponseClass() {
		return DetectVideoIPCObjectResponse.class;
	}

}
